package com.springcloud.auth.modular.auth.service;

import com.springcloud.auth.entity.TUserInfo;
import com.springcloud.auth.vo.TokenVo;

import java.util.Map;

public interface LoginService {

    TUserInfo login(String userName, String password);

    /**
     * 保存用户登录凭证
     *
     * @return
     */
    Map<String, Object> saveUserInfo(TUserInfo info, TokenVo tokenVo) throws Exception;

    /**
     * 用户登出
     *
     */
    void loginOut();
}
